package jee.boot.module.file.attachment.dao;

import jee.boot.common.basic.CrudDao;
import jee.boot.entity.file.AttachmentMapping;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * 附件MappingDAO接口
 * 
 * @author zhilei.wang
 * @version 2018-01-25
 */
@Mapper
public interface AttachmentMappingDao extends CrudDao<AttachmentMapping> {

    @Delete("delete from ${tableName} where business_id=#{businessId}")
    void deleteByBusinessId(AttachmentMapping entity);
}